<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <p>Using mustaches: {{ rawHtml }}</p>
        <p>Using v-html directive: <span v-html="rawHtml"></span></p>
    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                rawHtml: '<span style="color: red">This should by red.{{ abc }}</span>',
                abc: 'ABC' // 这个地方是用来验证，会忽略解析属性值中的数据绑定
            }
        })
    </script>
</body>
</html>